
import json
myjson = {"name": "汤姆", "city": "火城", "age": 6, "spc": None}

filename='names.json'
with open(filename,'w', encoding='utf-8') as file:
    json.dump(myjson,file, ensure_ascii=False)

with open(filename, encoding='utf-8') as file:
    names = json.load(file)
    names["spc"] = "喷火"
    print(names)
